var node=document.getElementById('id');
var NodeList1=document.getElementsByName('DIV');
var NodeList2=document.getElementsByTagName('div');
var NodeList3=document.getElementsByClassName('test');
var kids=node.childNodes();
var kid1=node.firstChild();
var kid2=kid1.nextSibling();
var kid4=node.lastChild();
var kid3=kid4.previousSibling();
var parent=node.parentNode();

var node=document.createElement('div');
var text=document.createTextNode('text');
var text2=document.createTextNode('well');
var attr=document.createAttribute('id');
var comment=document.createComment('comment');
attr.value='test';
node.setAttributeNode(attr);
node.appendChild(text);
node.replaceChild(text2,node.firstChild());
node.removeChild(node.lastChild());
node.appendChild(text2);
document.body.insertBefore(node,document.body.lastChild());

console.log(node.nodeName,node.nodeType,node.nodeValue,
				text.nodeName,text.nodeType,text.nodeValue,
				attr.nodeName,attr.nodeType,attr.nodeValue
);

console.log(document.body,document.documentElement);
